package com.trace.service.impl;

import java.util.List;

import com.google.inject.Inject;
import com.trace.dao.BookDao;
import com.trace.entity.Book;
import com.trace.service.BookManager;

public class BookManagerImpl implements BookManager {

	private BookDao bookDao;
	
	@Inject
	public void setBookdao(BookDao bookDao) {
		this.bookDao = bookDao;
	}
	
	public List<Book> findBookByCondition(Book paramBook) {

		List<Book> listBook = bookDao.findBookByCondition("");
		return listBook;
	}

	public Book findBookByID(Book paramBook) {
		Book book = new Book();
		book = bookDao.findBookByID(paramBook);
		return book;
	}

	public boolean updateBookCount(Book paramBook) {
		if(!bookDao.updateBookCount(paramBook)){
			return false;
		}
		return true;
	}

}
